package cn.java89.userservice.mybatis.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author oldliu
 * @since 1.0
 */

@Data
@NoArgsConstructor
@TableName("s_subject")
public class Subject implements Serializable {
    @TableId(type = IdType.AUTO)//主键
    private Long id;
    @TableField("gradeid")
    private Long gradeid;
    private String subjectname;
    //@TableField(exist = false)
    private int classhour;

}

